<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@page import="com.augurit.common.system.web.auth.form.LoginUserForm"%>
<%

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;

 %>
 <%LoginUserForm form=(LoginUserForm)request.getSession().getAttribute("SES_LOGIN_USER"); %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>预览许可证书</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
			.titleCss{
				font-size:200%;
				text-align:center;
				font-weight: bold;
			}
			.titile1Css{
				font-size:350%;
				text-align:center;
				font-weight: bold;
			}
			.justifyCss{
				width:20%;
				text-align:justify;
				text-justify:distribute-all-lines;
				text-align-last:justify;
			}
			.tdCss{
				font-size:130%;
				font-weight: bold;
			}
			.tdcontentCss{
				font-size:180%;
				font-weight: bold;
			}
			.inputNoborder {
			    FONT-SIZE: 25px;
			    FONT-FAMILY: 宋体;
			    BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
				.inputNoborder2 {
			    FONT-SIZE: 18px;
			    FONT-FAMILY: 宋体;
			    BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
				.inputNoborder1 {
			    FONT-SIZE: 18px;
			    FONT-FAMILY: 宋体;
			    BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
		</style>
		 <script type='text/javascript' src="${ctx}/dwr/engine.js"></script>
		<script type='text/javascript' src="${ctx}/dwr/util.js"></script>
		<script type='text/javascript' src="${ctx}/dwr/interface/FileUploadCntl.js"></script>
		<script type="text/javascript" src="${ctx}/resources/js/ext.js"></script>
		<script src="${ctx}/resources/js/jquery/jquery.js" type="text/javascript"></script>
		<script src="${ctx}/wf/public/WfPublic.js" type="text/javascript"></script>
		<script src="${ctx}/gzcgwsp/resources/js/prototype.js" type="text/javascript"></script>
		<script src="${ctx}/gzcgwsp/resources/js/YwUtil.js" type="text/javascript"></script>
		<script src="${ctx}/resources/js/aos/tool.js" type="text/javascript"></script>
		<script src="${ctx}/common/apabiPrint/js/gaizhang.js" type="text/javascript"></script>
		<script src="${ctx}/resources/components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="${ctx}/gzcgwsp/resources/css/common-ui.css" />
		<script type="text/javascript">
			function printXkz(){
                 var url="yw-yn-jzfqwczc-jbxx!printXkz.action?id="+${id};
                 var templateCode=document.getElementById("templateCode").value;
                 if(templateCode=="jzljczz_nsxz"){
                 	url="yw-yn-jzfqwczc-nsxz!printXkz.action?id="+${id};
                 }
                 
                 window.open(url);
               // YwUtil.openWin({url: url, w: 1000, h: 800});
           }
			window.onload=function(){
				var activityName=document.getElementById("activityName").value;
				//只有最后一个环节"电子盖章"才可以打印,其他环节只可以保存
				if(activityName.indexOf("jbr")>=0){
					//document.getElementById("printButton").style.display="none";
					//document.getElementById("saveButton").style.display="";
				}else{
					//document.getElementById("printButton").style.display="";
					//document.getElementById("saveButton").style.display="none";
				}
			}
				 
			function save(){
						var url="${ctx}/yw-yn-jzfqwczc-jbxx!saveXkz.action";
						var id=document.getElementById("id").value;
						var certificateNo=document.getElementById("certificateNo").value;
						var endYear=document.getElementById("endYear").value;
						var endMonth=document.getElementById("endMonth").value;
						var endDay=document.getElementById("endDay").value;
						var startYear=document.getElementById("startYear").value;
						var startMonth=document.getElementById("startMonth").value;
						var startDay=document.getElementById("startDay").value;
					 	   Ext.Ajax.request({
						     url:url,
						     method:'POST',
						     timeout:900000,
						     method:'POST',
						      params:{
						        'id': id,
						        'certificateNo':certificateNo,
						        'endYear':endYear,
						        'endMonth':endMonth,
						        'endDay':endDay,
						        'startYear':startYear,
						        'startMonth':startMonth,
						        'startDay':startDay
						      },
						     success:function(response){
						         var msg=response.responseText;
						       	if(msg=="success"){
									alert('保存成功!');
								}else{
									alert('保存失败！');
								}
							},
						    failure: function() {
						        Ext.Msg.alert('错误', '请求失败,请稍后重试'); 
						        myMask.hide();
						     } 
					   });
			}

</script>
<script type="text/javascript">  
	var contextpath="<%=basePath%>";
	var basepath="${ctx}";
	var fileSavePath=getPathBySystem(); 
		//根据操作系统用不同的路径
		function getPathBySystem(){
		     var path="";
		     var ua = navigator.userAgent.toLowerCase();
		     if(ua.indexOf("linux")>=0){
		        path="/usr/local/temp";
		     }else{
		        path="C:\\TEMP\\";
		     }
		    return path;
		}
		
		//盖章按钮
        function gzJyxkzs(){
           var chinesename = document.getElementById("sqdw").value+
           					document.getElementById("acceptNo").value+"许可证.xls";
           
           var filepath=contextpath+"/"+document.getElementById("templateFilePath").value;
  		   var filename = filepath.substring(filepath.lastIndexOf("/")+1);
  		   TransUpload(filename,chinesename,filepath);
  		   
  		   
        }
    
		function TransUpload(result,chinesename,filepath){
			var newpath=MakeWord(result,chinesename,filepath);// 打开word ，把它保存在D盘，相当于下载
			var DocName, CebName, LogName, IniName;
			var DocNameLen;
			var DocNameWONLen;
			var cebtail;
		//	DocName = NewDocForm.OriginalFile.value;
		 	DocName =newpath;
			DocNameLen = DocName.length;
			DocNameWONLen = DocName.lastIndexOf(".") - 1;
			if (DocNameWONLen == -1){
				DocNameWONLen = DocNameLen;
			}else{
				cebtail = DocName.substring(DocNameWONLen+2, DocNameLen);
			}
			if (cebtail.toLowerCase() == "ceb"){
				CebName = DocName;
			}else{
				CebName = DocName.substring(0, DocNameWONLen+1) + ".ceb";
			}
			
			LogName = DocName.substring(0, DocNameWONLen+1) + ".log";
			IniName = DocName.substring(0, DocNameWONLen+1) + ".ini";
			if (DocName != CebName){
				if (!(transMaker(DocName, CebName, LogName, IniName))){// 格式转换
					alert("格式转换失败，请重试！");
					return false;
				}		
			}
			else{
				alert("当前格式为ceb格式！");
			}
			var f=newpath.substring(0,newpath.lastIndexOf("."))+".ceb";
		
			Stamp_onclick(f);//盖章
			 var ieflag=checkIeVersion();
			 if(ieflag){
			 	//document.getElementById("t1").value=f;
				//callSet(fileTitle);//上传
				//Ext.getBody().mask("附件上传中");
		 		fileupload(f,'${id}','${templateCode}',chinesename);
		  }else{
		 	//Ext.getBody().mask("附件上传中");
		 	fileupload(f,'${id}','${templateCode}',chinesename);
		  }
			return true;

		}
			//弹出上传文件的窗口
	function fileWin(chinesename,uploadName){
		var ajid='${id}';
		var templateCode='${templateCode}';
		var username='<%=form.getUser().getUserName() %>';
		var dotIndex =uploadName.lastIndexOf(".");
		if (dotIndex < 0) dotIndex = uploadName.length;
		var attacheName = chinesename;
		var attacheType = uploadName.substring(dotIndex + 1);
		new Ext.Window({
		    id        : 'fileWin',
		    title     : '选择证书',
		    width     : 450,
		    height    : 150,
		    modal     : true,
		    plain     : true,
		    resizeable: false,
	        html: '<br>' +
	       '<form action="${ctx}/yw-com-print!uploadAttach.action"  enctype="multipart/form-data" id="fileform" name="fileform" method="post" target="upload-target">' +
	       '<input type="hidden" name="templateCode" value="'+templateCode +'"/>'+
	        '<input type="hidden" name="ajid" value="' +ajid+'"/>'+
	         '<input type="hidden" name="attacheName" value="' +attacheName+'"/>'+
	         '<input type="hidden" name="filetype" value="' +attacheType+'"/>'+
	         '<input type="hidden" name="username" value="' +username+'"/>'+
	        '<table width="100%" border="0">' +
	        '    <tr>' +
	        '        <td align="right" height="25">选择证件：</td>' +
	        '        <td colspan="3"><input type="file" id="attacheBrow" name="attach"  size="35" class="tpl_list_ui"/></td>' +
	        '    </tr>' +
	        '    <tr>' +
	        '        <td colspan="4" align="center">&nbsp;</td>' +
	        '    </tr>' +
	        '    <tr>' +
	        '        <td colspan="4" align="center">' +
	        '            <input type="button" value="上  传" onclick="uploadFile();" class="tpl_list_ui"/>' +
	        '            &nbsp;&nbsp;&nbsp;&nbsp;' +
	        '            <input type="button" value="取  消" onclick="Ext.getCmp(\'fileWin\').hide();" class="tpl_list_ui"/>' +
	        '        </td>' +
	        '    </tr>' +
	        '</table>' +
	        '<iframe name="upload-target" style="display:none;"></iframe>' +
	        '</form>' +
	    ''
	  }).show();
	}

	function uploadFile(){
	  document.getElementById("fileform").submit();
	}
		
		//格式转换
		function transMaker(DocName, CebName, LogName, IniName){
			var DTracker;
			DTracker = new ActiveXObject("MakerCom.MakerExt.1");
			var nRet;
			var Error;
			//alert("正转换文件，请稍候......");		
			nRet = DTracker.BeginMaker("");
			if (nRet != 0){
				alert(DTracker.GetErrorMessage(nRet));		
				delete DTracker;
				return false;
			}		
		    //alert("开始文档格式转换......请稍后!");		
			nRet = DTracker.SingleFileConvert(DocName, CebName, "标准模板", LogName, IniName);	
			if (nRet != 0){
				alert("MakerOcx transfer error!");
				nRet = DTracker.EndMaker();		
				delete DTracker;
				return false;
			}
			nRet = DTracker.EndMaker();
			if (nRet != 0){
				alert("MakerOcx End error!");		
				delete DTracker;
				return false;
			}	
			alert("格式转换完成！");	
			delete DTracker;
			return true;
		}
		//文件保存到本地
		 function MakeWord(filename,chinesename,filepath){
	        var WordApp=new ActiveXObject("Excel.Application");
	        var newpath=fileSavePath+chinesename;
	        var url=filepath;
        	WordApp.Visible = false;
	        var Doc=WordApp.Workbooks.open(url);
	        Doc.saveAs(newpath);
	        Doc.Close();
	        WordApp.Application.Quit();
	        return newpath;
 		}
		 		
		  //判断ie的版本，如果是6.0或者7.0返回true;
		function checkIeVersion(){
			var browser=navigator.appName 
			var b_version=navigator.appVersion 
			var version=b_version.split(";"); 
			var trim_Version=version[1].replace(/[ ]/g,""); 
			if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0"){ 
				return true;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE7.0"){ 
				return false;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE8.0"){ 
				return false;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { 
				return false;
			} else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { 
				return false;
			}else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { 
				return false;
			}
			return true;
		}
 		
 		
        </script>
        <script language="vbs">
Function Stamp_onclick(strCEBFileName)    	
	Dim strErrMessage, lRet, objStampClientTool,g_AffixRegisterURL,g_SendPrintURL,UnitName
	g_AffixRegisterURL="http://172.16.253.169/StampServer/interfaces/background/AffixRegister.aspx"
	g_SendPrintURL="http://172.16.253.169/StampServer/extend/interfaces/SendPrint.aspx"
	UnitName=""

	lRet = ""
	strErrMessage = ""
	strCEBFileName = trim(strCEBFileName)

	if  0 = len(trim(strCEBFileName)) then
		Call Alert("请选择CEB文件！", vbExclamation, "请选择CEB文件！")
		Exit Function
	else
		if UCase(Right(Trim(strCEBFileName), 3)) <> "CEB" then
			Call Alert("只能选择CEB格式的文件！", vbExclamation, "只能选择CEB格式的文件！")
			CEBFileName.value = ""
			Exit Function
		end if                  	 	  
	end if

	set objStampClientTool  = CreateObject("StampClientTool.StampTool")

	' 本地可视化盖章	
	lRet = objStampClientTool.LocalSealStamp(strCEBFileName, UnitName, g_AffixRegisterURL, g_SendPrintURL)
	
	if lRet <> 0 then
		strErrMessage = objStampClientTool.GetErrorMessage()
        alert "盖章失败原因:" & strErrMessage
	end if

	Set objStampClientTool = Nothing	
End Function

Sub PreviewCEB(xuwei)
	Dim lRet
	lRet = DCreateGBForm1.ViewLocalCEB(xuwei)
End Sub

Sub PreviewNetCEB(xuwei)
	Dim lRet
	lRet = DCreateGBForm1.ViewNetCEB(xuwei)
End Sub

</script>
<script LANGUAGE="JavaScript">
//崋值方法(就是将文本框的值赋值file对象)
function set1(){
    //将text1中的值复制到剪贴板中
    window.clipboardData.setData('text',$('t1').value); 
    //创建Shell(需要添加到信任站点或解除未签名的ActiveX控件的禁用
    var   WshShell=new   ActiveXObject("WScript.Shell"); 
    //拿到焦点
    $('f1').focus();
    //Ctrl + A 操作
    WshShell.sendKeys("^a");
    //Ctrl + V 操作(sendKeys对于中文赋值操作显得无力,所以只能模拟键盘操作)
    WshShell.sendKeys("^v");
    
}

//给当前网页中四个file对象赋值的方法
function set(chinesename){
    //此处不要用循环,有几个就需要写几个setXX方法
    setTimeout("set1()",3000);
    setTimeout("upload('"+chinesename+"')",2000);
}
//检查是否赋值成功
function check(){
    //检查每个file对象是否为空 
    if($('f1').value.length > 0){
        //检查原对象的值的赋值对象的值是否相同
        if($('f1').value == $('t1').value){
            return true;
        }else{
            return false;
        }
    }else{
        return false;
    }
}
//赋值和file对象的检查
function setValues(chinesename){
    if(!check()){
        set(chinesename);
    }
}
//直接调用的赋值方法
function callSet(chinesename){
    //一定要用setInterval,而不能用循环(循环太快,会造成所有的值赋在一个file对象上)
    //setInterval('setValues()',1000);
    setValues(chinesename);    
}

function upload(chinesename){
	var attache = dwr.util.getValue('f1');
	var uploadName=dwr.util.getValue('f1').value;
	if (uploadName == '') { 
	     uploadName=$('t1').value;
	    //Ext.Msg.alert("提示!","上传失败!");return;
	}
	var ajid='${id}';
	var username='<%=form.getUser().getUserName() %>';
	var dotIndex =uploadName.lastIndexOf(".");
	if (dotIndex < 0) dotIndex = uploadName.length;
	var attacheName = chinesename;
	var attacheType = uploadName.substring(dotIndex + 1);
	var obj;	
	 obj ={
	  ajid:ajid,
	  username:username,
	  filename:attacheName,
	  filetype:attacheType
	  };	
		
	var params=Ext.encode(obj);
	FileUploadCntl.uploadDzgz(params, attache, function (result){
	       Ext.Msg.alert("提示!","上传成功!");
	       window.location.reload(); 
	       //viewStore.load();
	});
}

function resultValue(result){
 var faile = Ext.decode(result);
	if(faile.msg==false){
		Ext.Msg.alert("提示!","上传失败!");
	}else{
	    Ext.Msg.alert("提示!","上传成功!");
	    //删除c:temp下的文件
		deleteFile();
	    Ext.getCmp('fileWin').close();
	    //window.location.reload(); 
	}
}
//删除文件
function deleteFile(){     
   var wshShell =new ActiveXObject("WScript.Shell");          
    //fso用来处理文件和文件夹   
    var fso = new ActiveXObject("Scripting.FileSystemObject");   
       
    //path删除文件的路径   
    var path = "c:\\temp";   
    //如果指定的文件夹存在则返回 True ；否则返回 False   
    if(fso.FolderExists(path)){   
      try{   
           fso.DeleteFile(path+"\\*.*");  
       }catch(e){   
             alert(".ceb" + e.message);   
       }   
              
   }else{   
           alert("不存在这个目录："+path);   
        }   
   }  
   
   //查看盖章
 function viewgzJyxkzs(){
 	   var filename = document.getElementById("sqdw").value+
           			 document.getElementById("acceptNo").value+"许可证.xls";
       var id=document.getElementById("id").value;
       var templateCode='${templateCode}';
       var url="yw-com-print!veiwGzfile.action?ywId="+id+"&templateCode="+templateCode;
 	   Ext.Ajax.request({
	     url:url,
	     method:'POST',
	     timeout:900000,
	     method:'POST',
	      params:{
	        'filename': filename
	      },
	     success:function(response){
	         var msg=response.responseText;
	         if(msg!=""){
	        	 filename=filename.substring(0,filename.lastIndexOf("."));
				filename+=".ceb";
				filename=encodeURI(encodeURI(filename));
				window.location.href = "${ctx}/common/downloadfile.jsp?filepath="+msg+"&filename="+filename;  
			}else{
				alert('文件不存在！');
			}
		},
	    failure: function() {
	        Ext.Msg.alert('错误', '请求失败,请稍后重试'); 
	        myMask.hide();
	     } 
   });
 }
   
function  viewGzFile(path,filename){
	filename=filename.substring(0,filename.lastIndexOf("."));
	filename+=".ceb";
	var url="yw-com-print!checkFile.action?url="+path;
	//检查文件是否存在
	 Ext.Ajax.request({
	     url:url,
	     method:'POST',
	     timeout:900000,
	     method:'POST',
	     success:function(response){
	         var msg=response.responseText;
	         if(msg=="true"){
				window.location.href = "${ctx}/common/downloadfile.jsp?filepath="+path+"&filename="+filename;  
			}else{
				alert('文件不存在！');
			}
		},
	    failure: function() {
	        Ext.Msg.alert('错误', '请求失败,请稍后重试'); 
	        myMask.hide();
	     } 
   });
}

//上传文件
 function fileupload(filepath,ajid,templateCode,fileTitle){  

	if(filepath!=""){    
		sendFileToServer(filepath,ajid,templateCode,fileTitle);  
	} else{  
		alert("请选择要上传的文件");  
		return;
	} 
}
//文件写成流
function sendFileToServer(filePath,ajid,templateCode,fileTitle){ 
	var filepath=encodeURI(encodeURI(filePath));  
	var filetitle=encodeURI(encodeURI(fileTitle));  
	var stream =new ActiveXObject("ADODB.Stream");     
	stream.Type=1;     
	stream.Open();     
	stream.Position = 0;//指定或返加对像内数据的当前指针。
	stream.LoadFromFile(filePath) //将FileName指定的文件装入对像中,参数FileName为指定的用户名
	stream.Position = 0;
	//这里如果提交到action不能获取到前台的流 应该是struts拦截器的问题所以直接用jsp操作
	sendByteStreamToServer(stream,basepath+"/common/apabiPrint/fileupload.jsp?path="+filepath+
							"&ajid="+ajid+"&templateCode="+templateCode+"&fileTitle="+filetitle);//请求路径
	stream.Close();
}


function sendByteStreamToServer(stream,url){  
	if (window.XMLHttpRequest) {      
		xmlhttp = new XMLHttpRequest();       
		if (xmlhttp.overrideMimeType) {          
			xmlhttp.overrideMimeType("text/xml")      
		}  
	} else if (window.ActiveXObject) {       
		var activexName = ["MSXML2.XMLHTTP","Microsoft.XMLHTTP"];      
		for (var i = 0; i < activexName.length; i++) {          
			try {              
				xmlhttp = new ActiveXObject(activexName[i]);              
				break;          
			} catch(e) {               
				e.print()          
			}    
		} 
	} 
	xmlhttp.onreadystatechange = callback;  
	xmlhttp.open("post", url, false);  
	boundary="abcd"  
	xmlhttp.setRequestHeader("Content-Type", "multipart/form-data, boundary="+boundary);
	xmlhttp.setRequestHeader("Content-Length", stream.Size); 
	xmlhttp.send(stream); 
}


function callback() {   
	if (xmlhttp.readyState == 4) {       
		var responseText = xmlhttp.responseText; 
		if(xmlhttp.status==200){
			//Ext.getBody().unmask();
			alert("盖章文件上传成功");
			//window.location.reload(); 
		}         
	}
}

</script>
	</head>
	<body>
		<form action="" method="POST" id="xkzForm">
		<input type="hidden" name="id" value="${id}"/>
		<input type="hidden" id="acceptNo" value="${acceptNo}"/>
		<input type="hidden" id="activityName" value="${hjmc}"/>
		<input type="hidden" id="templateCode" value="${templateCode}"/>
		<input type="hidden" name="templateFilePath" id="templateFilePath" value="${templateFilePath}">
		
		<table width="1024" border=0 align="center">
			<tr>
				<td class="titleCss" colspan="3">广&nbsp;州&nbsp;市&nbsp;建&nbsp;筑&nbsp;废&nbsp;弃&nbsp;物&nbsp;处&nbsp;置&nbsp;证（运输）</td>
			</tr>
			<tr>
			<td colspan="3">	&nbsp;&nbsp;</td>
			</tr>
			<tr height="40">
				<td colspan="2" align=""></td>
				<td colspan="" align="center" class="tdCss">NO.&nbsp;&nbsp;<input name="certificateNo" id="certificateNo" value="${certificateNo}" maxlenth="10" size="10" class="inputNoborder1"/>号</td>
			</tr>
			<tr>
				<td class="tdCss" style="width:18%">企&nbsp;&nbsp;&nbsp;&nbsp;业&nbsp;&nbsp;&nbsp;&nbsp;名&nbsp;&nbsp;&nbsp;&nbsp;称：</td>
				<td class="tdCss" colspan="2" style="width:50%"> <input name="sqdw" readonly value="${sqdw}" class="inputNoborder" style="width:100%;"/></td>
			</tr>
			<tr>
				<td class="tdCss">单&nbsp;&nbsp;&nbsp;&nbsp;位&nbsp;&nbsp;&nbsp;&nbsp;地&nbsp;&nbsp;&nbsp;&nbsp;址：</td>
				<td class="tdCss" colspan="2"><input name="address" value="${address}" readonly class="inputNoborder" style="width:100%;"/></td>
			</tr>
			<tr>
				<td class="tdCss">法定代表人：</td>
				<td class="tdCss" colspan="2"><input name="frxm" readonly value="${frxm}" class="inputNoborder" style="width:100%;"/></td>
			</tr>
			<tr>
				<td class="tdCss">许&nbsp;&nbsp;&nbsp;&nbsp;可&nbsp;&nbsp;&nbsp;&nbsp;范&nbsp;&nbsp;&nbsp;&nbsp;围：</td>
				<td class="tdCss" colspan="2"><input name="xkfw"  value="${xkfw}" class="inputNoborder" style="width:100%;"/></td>
			</tr>
			<tr height="60">
			 <td colspan="3">&nbsp;</td>
			</tr>
			<tr>
				<td class="tdcontentCss" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;根据《广州市市容环境卫生管理规定》第四十九条规定，经审核，<br>
				你单位符合建筑废弃物运输处置的许可条件，准予发证。
				</td>
			</tr>
			<tr height="30">
			 <td colspan="3">&nbsp;</td>
			</tr>
			<tr>
				<td class="" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【法律、行政法规禁止的，不得经营；法律、行政法规限制的项目须取得相关放可文件后方可经营】
				
				</td>
			</tr>
			<tr height="30">
			 <td colspan="3">&nbsp;</td>
			</tr>
			<tr>
			<td class="" style="width:10%">有效期限至：</td>
				<td class="" style="width:45%">
				<input name="endYear" id="endYear"  onKeyUp="javascript:clearNoNum(event,this)" onBlur="javascript:checkNum(this)"  value="${endYear}" maxlength="4" class="inputNoborder2" style="width:40px;"/>
				年
				<input name="endMonth"  id="endMonth"  onKeyUp="javascript:clearNoNum(event,this)" onBlur="javascript:checkNum(this)"  value="${endMonth}"  maxlength="2"  class="inputNoborder2" style="width:25px;"/>
				月
				<input name="endDay"    id="endDay"  onKeyUp="javascript:clearNoNum(event,this)" onBlur="javascript:checkNum(this)"  value="${endDay}"  maxlength="2" class="inputNoborder2" style="width:25px;"/>
				日
				</td>
				<td class="" style="width:45%">
				<input name="startYear"   id="startYear"   onKeyUp="javascript:clearNoNum(event,this)" onBlur="javascript:checkNum(this)"  value="${startYear}" maxlength="4" class="inputNoborder2" style="width:40px;"/>
                  年
                <input name="startMonth"  id="startMonth"  onKeyUp="javascript:clearNoNum(event,this)" onBlur="javascript:checkNum(this)"  value="${startMonth}"  maxlength="2"  class="inputNoborder2" style="width:25px;"/>
                  月
                <input name="startDay" id="startDay"   onKeyUp="javascript:clearNoNum(event,this)" onBlur="javascript:checkNum(this)"  value="${startDay}"  maxlength="2" class="inputNoborder2" style="width:20px;"/>
				日
				</td>
			
			</tr>
		
		
			<tr>
				<td colspan="3" style="text-align:center;">
					<input id="saveButton" type="button" value="保&nbsp;&nbsp;存" style="width:100px;" onclick="save()"/>
					<input id="printButton" type="button" value="打&nbsp;&nbsp;印" onclick="printXkz();" style="width:100px;"/>
					<input type="button" onclick="gzJyxkzs();"  id="gzxkz" value="盖&nbsp;&nbsp;章" style="width:100px;"/>
		            <input type="button" onclick="viewgzJyxkzs();"  id="viewgzfile" value="查看盖章" style="width:100px;"/>
					<input type="button" value="关闭窗口" onclick="window.close();" style="width:100px;"/>
				</td>
			</tr>
		</table>
		</form>
	
	</body>
</html>